import mockRequest from '@/utils/mockRequest';
const actions = {
  async getData({commit}){
    let result = await mockRequest.get('/home/list')
    if(result.code === 200){
      commit('GETDATA',result.data)
    }
  }
}
const mutations = {
  GETDATA(state,data){
    state.echartsData = data
  }
}
const state = {
  echartsData: {}
}

const getters = {}

export default {
  actions,
  mutations,
  state,
  getters
}